package com.smartpro.mis.modular.system.dao;

import com.smartpro.mis.modular.system.model.Message;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 消息表 Mapper 接口
 * </p>
 *
 * @author mengiy123
 * @since 2019-05-07
 */
public interface MessageMapper extends BaseMapper<Message> {

    List<Map<String,Object>> getMyMessages(@Param("receiverID") int receiverID,@Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("start") Integer start, @Param("num") Integer num);
    List<Map<String,Object>> selectMessageByType(@Param("messageType") int messageType,@Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("start") Integer start, @Param("num") Integer num);
    List<Map<String,Object>> getMessageList(@Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("start") Integer start, @Param("num") Integer num);

}
